@extends('admin.public.father')
@section('content')
    <form action="{{route('blog.update',$blog)}}" method="post">
        @csrf
        @method('PUT')
        <div class="card">
            <div class="card-header" style="text-align: center;font-size: 20px">
                {{$blog->user->username}}的博客内容
            </div>
            <div class="card-header">文章修改</div>
            <div class="card-body">
                <div class="form-group">
                    <label for="exampleFormControlInput1">文章标题</label>
                    <input type="text" name="title" class="form-control" id="exampleFormControlInput1" value="{{$blog['title']}}">
                </div>
                <div class="form-group">
                    <label for="exampleFormControlTextarea1">文章内容</label>
                    <textarea name="content" class="form-control" id="exampleFormControlTextarea1" rows="10">{{$blog['content']}}</textarea>
                </div>
                <button class="btn btn-primary btn-lg btn-block">立即修改</button>
            </div>
        </div>
    </form>
@endsection